package Visitor;

public class SSQ implements Visitor{

    @Override
    public void eatFood(Apple apple) {
        System.out.println("我吃了苹果");
    }

    @Override
    public void eatFood(Pear pear) {
        System.out.println("我吃了梨");
    }
}